﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="RoleEdit.aspx.cs" Inherits="WebApp.Roles.RoleEdit" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="scriptCssContent" runat="server">
    <script type="text/javascript">
        $(document).ready(function () {
            $("#<%= btnSave.ClientID %>").click(function () {
                try {
                    var txtRoleName = $find("<%= txtRoleName.ClientID %>");

                    if (!CheckRequireField(txtRoleName, "Vui lòng nhập role!", 1, true)) {
                        return false;
                    }

                    return true;
                } catch (e) {
                    alert(e);
                    return false;
                }
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="titlePlaceHolder" runat="server">
    <asp:literal id="pageTitle" runat="server"></asp:literal>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="menuPlaceHolder" runat="server">
    <one:TabStrip ID="tspSystemAdministrator" runat="server">
        <one:Tab name="employeeManagement" NavigateUrl="~/Employees/EmployeeManagement.aspx" Text="<%$ Resources:Strings, EmployeeManagement%>" AllowRoles="Administrators"></one:Tab>
        <one:Tab Name="manufacturerManagement" NavigateUrl="~/Manufacturers/ManufacturerManagement.aspx" Text="<%$ Resources:Strings, ManufacturerManagement%>" AllowRoles="Administrators"></one:Tab>
        <one:Tab Name="parameterManagement" NavigateUrl="~/Parameters/ParameterManagement.aspx" Text="<%$ Resources:Strings, ParameterManagement%>" AllowRoles="Administrators"></one:Tab>
        <one:Tab Name="productTypeManagement" NavigateUrl="~/ProductTypes/ProductTypeManagement.aspx" Text="<%$ Resources:Strings, ProductTypeManagement%>" AllowRoles="Administrators"></one:Tab>
        <one:Tab Name="repairingTypeManagement" NavigateUrl="~/RepairingTypes/RepairingTypeManagement.aspx" Text="<%$ Resources:Strings, RepairingTypeManagement%>" AllowRoles="Administrators"></one:Tab>
        <one:Tab Name="repairQualitiesManagement" NavigateUrl="~/RepairQualities/RepairQualityManagement.aspx" Text="<%$ Resources:Strings, RepairQualityManagement%>" AllowRoles="Administrators"></one:Tab>
        <one:Tab Name="roleManagement" NavigateUrl="~/Roles/RoleManagement.aspx" Text="<%$ Resources:Strings, RoleManagement%>" AllowRoles="Administrators"></one:Tab>
        <one:Tab Name="statusManagement" NavigateUrl="~/StatusFolder/StatusManagement.aspx" Text="<%$ Resources:Strings, StatusManagement%>" AllowRoles="Administrators"></one:Tab>
        <one:Tab Name="userManagement" NavigateUrl="~/Users/UserManagement.aspx" Text="<%$ Resources:Strings, UserManagement%>" AllowRoles="Administrators"></one:Tab>    
    </one:TabStrip>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="contentPlaceHolder" runat="server">
    <fieldset title="Thông tin hãng sản xuất">
        <legend>Thông tin hãng sản xuất</legend>
        <table style="width:100%; border:0px;">
            <tr>
                <td class="ISoft_LabelTitle" style="width:15%;">Role <span class="ISoft_RequireField">*</span></td>
                <td class="ISoft_Input" style="width:85%;">
                    <telerik:RadTextBox ID="txtRoleName" Runat="server" Skin="<%$ Resources:Strings, Skin%>" MaxLength="500" Width="100%"></telerik:RadTextBox>
                </td>
            </tr>
        </table>
    </fieldset>
    <table style="width:100%; border:0px;">
        <tr>
            <td class="ISoft_ButtonsRow">
                <telerik:RadButton ID="btnSave" runat="server" 
                    Skin="<%$ Resources:Strings, Skin%>" Text="<%$ Resources:Strings, Save%>" 
                    Width="100px" onclick="btnSave_Click"></telerik:RadButton>
                <telerik:RadButton ID="btnBack" runat="server" 
                    Skin="<%$ Resources:Strings, Skin%>" Text="<%$ Resources:Strings, Back%>" 
                    Width="100px" onclick="btnBack_Click"></telerik:RadButton>
            </td>
        </tr>
    </table>
</asp:Content>
